package ink.xiaobaibai.serviceOxy;

import ink.xiaobaibai.bo.DeviceMqttBo;
import ink.xiaobaibai.common.DeviceType;

/**
 * 机器控制接口
 */
public interface IMqttService {

    /**
     * 检查一台机器(是否在线/是否故障)
     * 单次业务的机器
     */
    public boolean checkOnePayDevice(String deviceCode);

    /**
     * 检查不同业务的臭氧机是否在线(月费/购买/酒店)
     */
    public boolean checkDeviceByType(String deviceCode, DeviceType deviceType);

    /**
     * 启动一台机器
     */
    public void openDevice(String deviceCode, DeviceMqttBo deviceMqttBo);

    /**
     * 关闭一台机器
     */
    public void closeDevice(String deviceCode);

    /**
     * 关闭一台机器(酒店版专用)
     */
    public void closeDevice(String deviceCode, String roomNumber);

}
